# utils.pri
# This file includes settings for compiling the utilities library, including bit manipulation.
QT       += network
QT += serialport
win32{
    LIBS += -Ldll -lws2_32
}

MOC_DIR   = temp/moc
RCC_DIR   = temp/rcc
UI_DIR    = temp/ui
OBJECTS_DIR  = temp/obj

# Define the include directory for the utilities header files
INCLUDEPATH += $$PWD/001_FloraLogger \
               $$PWD/002_DataParser \
               $$PWD/003_BitManipulation \
               $$PWD/004_FloraIniManager \
               $$PWD/008_netWork/    \
                $$PWD/013_protocol256

win32 {
    # Windows 平台，链接 Psapi.lib
    LIBS += -lpsapi
    SOURCES +=$$PWD/010_MemoryInfo_window/MemoryMonitor.cpp
    HEADERS +=$$PWD/010_MemoryInfo_window/MemoryMonitor.h
}

SOURCES += \
    $$PWD/001_FloraLogger/FloraLogger.cpp \
    $$PWD/002_DataParser/DataParser.c \
    $$PWD/002_DataParser/ProtocolParser.cpp \
    $$PWD/004_FloraIniManager/FloraIniManager.cpp \
    $$PWD/008_netWork/TcpClient.cpp \
    $$PWD/008_netWork/TcpServer.cpp \
    $$PWD/008_netWork/UdpSocket.cpp \
    $$PWD/013_protocol256/protocol256.cpp


HEADERS += \
    $$PWD/002_DataParser/ProtocolParser.h \
    $$PWD/003_BitManipulation/BitManipulation.h \
    $$PWD/001_FloraLogger/FloraLogger.h  \
    $$PWD/002_DataParser/DataParser.h \
    $$PWD/004_FloraIniManager/FloraIniManager.h \
    $$PWD/008_netWork/TcpClient.h \
    $$PWD/008_netWork/TcpServer.h \
    $$PWD/008_netWork/UdpSocket.h \
    $$PWD/013_protocol256/protocol256.h




# Optionally, if you want to create a static or shared library, uncomment the following:
# CONFIG += staticlib
# CONFIG += shared
